home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d18 / codegen.arc / CODEGEN.DOC next >
Text File  |  1991-04-28  |  2KB  |  55 lines

  1.  
  2.       A CODE GENERATOR PACKAGE FOR DATA ENTRY SCREENS - by William Weber
  3.  
  4. With a text editor or word processor you can lay out a data entry screen,
  5. then process it into an include file for use in you Turbo Pascal or Turbo
  6. C program. 
  7.  
  8.  
  9. SCRCODEP.EXE
  10. For the Turbo Pascal programmer, this reads a 25-line X 80-column text file and
  11. generates the Turbo Pascal code as GoToXY and Write statements to display it.
  12.  
  13. SCRCODEC.EXE
  14. For the Turbo C programmer, this reads a 25-line X 80-column text file and
  15. generates the Turbo C code as gotoxy() and cprintf() statements to display it.
  16.  
  17. TEST.SCR - Sample input file for a screen
  18.  
  19. TEST.ENT - Sample input file with entry fields defined
  20.  
  21. TEST.INC - Turbo Pascal include file, generated from TEST.SCR and TEST.ENT.
  22.  
  23. TEST.H - Turbo C include file, generated from TEST.SCR and TEST.ENT.
  24.  
  25.  
  26. SUGGESTIONS
  27. There are packages for about $100 and more for building screens for data
  28. entry.  Using this package you can do much the same in the following way:
  29.  
  30. 1.  Create the data entry design with a text editor or word processor,
  31. including enough spcae for each entry field.  Be sure to stay within the bounds
  32. of a single screen.  Save your work in ASCII format under a filename such as
  33. "MYSCREEN.SCR".  (Make sure extension is ".SCR".)
  34.  
  35. 2.  Re-edit, filling in the entry fields with some character such as "#".
  36. Save this as "MYSCREEN.ENT". (The filename body must be the same as the
  37. previous one, with the extension changed to ".ENT".)
  38.  
  39. 3.  Execute SCRCODEP to generate the Turbo Pascal include file MYSCREEN.INC
  40.        scrcodep myscreen  
  41.  
  42.     or execute SCRCODEP for the Turbo C include file MYSCREEN.H
  43.        scrcodec myscreen  
  44.   
  45. 4.  For further ideas, refer to the sample files in this package.
  46.  
  47.  
  48. For questions about SCRCODEP or SCRCODEC, contact
  49.  
  50.         William Weber
  51.         11A Banks Street
  52.         Waltham, MA 02154
  53.         (617) 891-5608
  54.  
  55.